{% extends "adminlayout.html" %}
{% block adminlayout %}

    <div class="panel panel-default" style="margin-bottom: 400px;">
        <div class="panel-heading">
            <span class="glyphicon glyphicon-th-list" aria-hidden="true"></span>
<<<<<<< HEAD
            报名成功列表
=======
            已发货报名列表
>>>>>>> f0eb04185cbc15f17a793618efb075babdcd937b
        </div>

        <!-- Table -->
        <table class="table table-bordered">
            <thead>
            <tr>
                <th style="text-align: center;">报名编号</th>
                <th style="text-align: center;">姓名</th>
                <th style="text-align: center;">年龄</th>
<<<<<<< HEAD
                <th style="text-align: center;">身份证号</th>
=======
>>>>>>> f0eb04185cbc15f17a793618efb075babdcd937b
                <th style="text-align: center;">手机号</th>
                <th style="text-align: center;">报名时间</th>
                <th style="text-align: center;">性别</th>
                <th style="text-align: center;">学员照片</th>
<<<<<<< HEAD
=======
                <th style="text-align: center;">驾校访问地址</th>
>>>>>>> f0eb04185cbc15f17a793618efb075babdcd937b
                <th style="text-align: center;">驾照类型</th>
                <th style="text-align: center;">价格</th>
                <th style="text-align: center;">状态</th>
                <th style="text-align: center;">操作</th>
            </tr>
            </thead>
            <tbody>
            {% for obj in queryset %}
                <tr>
                    <td style="text-align: center;">{{ obj.id }}</td>
                    <td style="text-align: center;">{{ obj.user }}</td>
                    <td style="text-align: center;">{{ obj.age }}</td>
<<<<<<< HEAD
                    <td style="text-align: center;">{{ obj.idnumber }}</td>
                    <td style="text-align: center;">{{ obj.dianhua }}</td>
                    <td style="text-align: center;">{{ obj.order_date }}</td>
                    <td style="text-align: center;">{{ obj.get_gender_display }}</td>
                    <td style="text-align: center;"><img src="/media/{{obj.head }}" style="width: 60px;height: 60px;"></td>
=======
                    <td style="text-align: center;">{{ obj.dianhua }}</td>
                    <td style="text-align: center;">{{ obj.order_date }}</td>
                    <td style="text-align: center;">{{ obj.get_gender_display }}</td>
                    <td style="text-align: center;"><img src="/media/{{obj.head }}" style="width: 60px;height: 60px;">
                    </td>
                    <td style="text-align: center;"><a class="btn btn-link"
                                                       href="/goods/goodsdetails/{{ obj.goodsid }}/">{{ obj.gname }}</a>
                    </td>
>>>>>>> f0eb04185cbc15f17a793618efb075babdcd937b
                    <td style="text-align: center;">{{ obj.sname }}</td>
                    <td style="text-align: center;">{{ obj.price }}</td>
                    <td style="text-align: center;">{{ obj.get_status_display }}</td>
                    <td style="text-align: center;">
                        {% if obj.get_status_display == "报名成功" %}
                            <a class="btn btn-warning btn-xs" href="javascript:void (0);">编辑</a>
                        {% endif %}
                        {% if obj.get_status_display == "未报名" %}
                            <a class="btn btn-primary btn-xs" href="/Adminorder/{{ obj.id }}/edit/">编辑</a>
                        {% endif %}
                        {% if obj.get_status_display == "待审核" %}
                            <a class="btn btn-default btn-xs" href="/Adminorder/{{ obj.id }}/edit/">编辑</a>
                        {% endif %}
                    </td>
                </tr>

            {% endfor %}

            </tbody>
        </table>
        <ul class="pagination" style="margin-top: 50px;float: right;">
            {{ page_string }}
        </ul>
    </div>

{% endblock %}